.class Lcom/example/m6shop/DishesActivity22$4;
.super Ljava/lang/Thread;
.source "DishesActivity22.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6shop/DishesActivity22;->getShopSource()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6shop/DishesActivity22;


# direct methods
.method constructor <init>(Lcom/example/m6shop/DishesActivity22;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    .line 895
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 24

    .prologue
    .line 897
    invoke-super/range {p0 .. p0}, Ljava/lang/Thread;->run()V

    .line 900
    new-instance v12, Landroid/os/Message;

    invoke-direct {v12}, Landroid/os/Message;-><init>()V

    .line 901
    .local v12, "msg":Landroid/os/Message;
    new-instance v20, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v21, v0

    move-object/from16 v0, v21

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->m:Lmyapp/MyApp;

    move-object/from16 v21, v0

    invoke-virtual/range {v21 .. v21}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v21 .. v21}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v21

    invoke-direct/range {v20 .. v21}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 902
    const-string v21, "/index.php?ctrl=app&action=goodsone&goodsid="

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    .line 903
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v21, v0

    move-object/from16 v0, v21

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->goodsid:Ljava/lang/String;

    move-object/from16 v21, v0

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    const-string v21, "&ios=marketos&datatype=json"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    .line 901
    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    .line 904
    .local v19, "url":Ljava/lang/String;
    const-string v20, "ShopshowACtivity"

    new-instance v21, Ljava/lang/StringBuilder;

    const-string v22, "getshopSource"

    invoke-direct/range {v21 .. v22}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v21

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v21

    invoke-virtual/range {v21 .. v21}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 906
    invoke-static/range {v19 .. v19}, Lmyclass/HttpConn;->getStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v17

    .line 907
    .local v17, "str":Ljava/lang/String;
    const-string v20, "str----------------"

    move-object/from16 v0, v20

    move-object/from16 v1, v17

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 909
    :try_start_0
    new-instance v10, Lorg/json/JSONObject;

    move-object/from16 v0, v17

    invoke-direct {v10, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 911
    .local v10, "json":Lorg/json/JSONObject;
    const-string v20, "error"

    move-object/from16 v0, v20

    invoke-virtual {v10, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    const-string v21, "true"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v20

    if-eqz v20, :cond_0

    .line 913
    const-string v20, "msg"

    move-object/from16 v0, v20

    invoke-virtual {v10, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    move-object/from16 v0, v20

    iput-object v0, v12, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 914
    const/16 v20, 0x1

    move/from16 v0, v20

    iput v0, v12, Landroid/os/Message;->arg1:I

    .line 915
    sget-object v20, Lcom/example/m6shop/DishesActivity22;->h:Landroid/os/Handler;

    move-object/from16 v0, v20

    invoke-virtual {v0, v12}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1022
    .end local v10    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 918
    .restart local v10    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v20, "msg"

    move-object/from16 v0, v20

    invoke-virtual {v10, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v20

    if-eqz v20, :cond_1

    .line 920
    const/16 v20, 0x2

    move/from16 v0, v20

    iput v0, v12, Landroid/os/Message;->arg1:I

    .line 921
    sget-object v20, Lcom/example/m6shop/DishesActivity22;->h:Landroid/os/Handler;

    move-object/from16 v0, v20

    invoke-virtual {v0, v12}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 1014
    .end local v10    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v6

    .line 1016
    .local v6, "e":Lorg/json/JSONException;
    invoke-virtual {v6}, Lorg/json/JSONException;->printStackTrace()V

    .line 1019
    const/16 v20, 0x2

    move/from16 v0, v20

    iput v0, v12, Landroid/os/Message;->arg1:I

    .line 1020
    sget-object v20, Lcom/example/m6shop/DishesActivity22;->h:Landroid/os/Handler;

    move-object/from16 v0, v20

    invoke-virtual {v0, v12}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 924
    .end local v6    # "e":Lorg/json/JSONException;
    .restart local v10    # "json":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    const-string v20, "msg"

    move-object/from16 v0, v20

    invoke-virtual {v10, v0}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v13

    .line 926
    .local v13, "obj":Lorg/json/JSONObject;
    const-string v20, "goods"

    move-object/from16 v0, v20

    invoke-virtual {v13, v0}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v18

    .line 927
    .local v18, "tarray":Lorg/json/JSONObject;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    new-instance v21, Lcom/example/m6shop/GoodsBean2;

    invoke-direct/range {v21 .. v21}, Lcom/example/m6shop/GoodsBean2;-><init>()V

    move-object/from16 v0, v21

    move-object/from16 v1, v20

    iput-object v0, v1, Lcom/example/m6shop/DishesActivity22;->bb:Lcom/example/m6shop/GoodsBean2;

    .line 928
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    new-instance v21, Ljava/util/ArrayList;

    invoke-direct/range {v21 .. v21}, Ljava/util/ArrayList;-><init>()V

    move-object/from16 v0, v21

    move-object/from16 v1, v20

    iput-object v0, v1, Lcom/example/m6shop/DishesActivity22;->listimg:Ljava/util/List;

    .line 929
    const-string v20, "img"

    move-object/from16 v0, v18

    move-object/from16 v1, v20

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v15

    .line 930
    .local v15, "pr":Lorg/json/JSONArray;
    const/4 v9, 0x0

    .local v9, "i":I
    :goto_1
    invoke-virtual {v15}, Lorg/json/JSONArray;->length()I

    move-result v20

    move/from16 v0, v20

    if-lt v9, v0, :cond_3

    .line 935
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->bb:Lcom/example/m6shop/GoodsBean2;

    move-object/from16 v20, v0

    const-string v21, "name"

    move-object/from16 v0, v18

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lcom/example/m6shop/GoodsBean2;->setname(Ljava/lang/String;)V

    .line 936
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->bb:Lcom/example/m6shop/GoodsBean2;

    move-object/from16 v20, v0

    const-string v21, "point"

    move-object/from16 v0, v18

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lcom/example/m6shop/GoodsBean2;->setpoint(Ljava/lang/String;)V

    .line 937
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->bb:Lcom/example/m6shop/GoodsBean2;

    move-object/from16 v20, v0

    const-string v21, "shopid"

    move-object/from16 v0, v18

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lcom/example/m6shop/GoodsBean2;->setShopid(Ljava/lang/String;)V

    .line 938
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->bb:Lcom/example/m6shop/GoodsBean2;

    move-object/from16 v20, v0

    const-string v21, "typeid"

    move-object/from16 v0, v18

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lcom/example/m6shop/GoodsBean2;->settypeid(Ljava/lang/String;)V

    .line 939
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->bb:Lcom/example/m6shop/GoodsBean2;

    move-object/from16 v20, v0

    const-string v21, "sellcount"

    move-object/from16 v0, v18

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lcom/example/m6shop/GoodsBean2;->setsellcount(Ljava/lang/String;)V

    .line 940
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->bb:Lcom/example/m6shop/GoodsBean2;

    move-object/from16 v20, v0

    const-string v21, "count"

    move-object/from16 v0, v18

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lcom/example/m6shop/GoodsBean2;->setcounts(Ljava/lang/String;)V

    .line 941
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->bb:Lcom/example/m6shop/GoodsBean2;

    move-object/from16 v20, v0

    const-string v21, "descgoods"

    move-object/from16 v0, v18

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lcom/example/m6shop/GoodsBean2;->setContent(Ljava/lang/String;)V

    .line 943
    const-string v20, "\u5546\u54c1\u8be6\u60c5"

    const-string v21, "instro"

    move-object/from16 v0, v18

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 944
    const-string v20, "\u5546\u54c1\u7b80\u8ff0"

    const-string v21, "descgoods"

    move-object/from16 v0, v18

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 947
    const-string v20, "xiangqing ----------------"

    const-string v21, "instro"

    move-object/from16 v0, v18

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 949
    const-string v20, "bagcost"

    move-object/from16 v0, v18

    move-object/from16 v1, v20

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    .line 948
    invoke-static/range {v20 .. v20}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result v2

    .line 950
    .local v2, "bagcost":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->bb:Lcom/example/m6shop/GoodsBean2;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    invoke-virtual {v0, v2}, Lcom/example/m6shop/GoodsBean2;->setbagcost(F)V

    .line 951
    const-string v20, "cost"

    move-object/from16 v0, v18

    move-object/from16 v1, v20

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v20 .. v20}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result v5

    .line 952
    .local v5, "cost":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->bb:Lcom/example/m6shop/GoodsBean2;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    invoke-virtual {v0, v5}, Lcom/example/m6shop/GoodsBean2;->setcost(F)V

    .line 953
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->bb:Lcom/example/m6shop/GoodsBean2;

    move-object/from16 v20, v0

    const-string v21, "have_det"

    move-object/from16 v0, v18

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lcom/example/m6shop/GoodsBean2;->setHave_det(Ljava/lang/String;)V

    .line 955
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    new-instance v21, Ljava/util/ArrayList;

    invoke-direct/range {v21 .. v21}, Ljava/util/ArrayList;-><init>()V

    move-object/from16 v0, v21

    move-object/from16 v1, v20

    iput-object v0, v1, Lcom/example/m6shop/DishesActivity22;->listpro:Ljava/util/List;

    .line 956
    const-string v20, "product"

    move-object/from16 v0, v18

    move-object/from16 v1, v20

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v16

    .line 957
    .local v16, "pro":Lorg/json/JSONArray;
    const/4 v9, 0x0

    :goto_2
    invoke-virtual/range {v16 .. v16}, Lorg/json/JSONArray;->length()I

    move-result v20

    move/from16 v0, v20

    if-lt v9, v0, :cond_4

    .line 968
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    new-instance v21, Ljava/util/ArrayList;

    invoke-direct/range {v21 .. v21}, Ljava/util/ArrayList;-><init>()V

    move-object/from16 v0, v21

    move-object/from16 v1, v20

    iput-object v0, v1, Lcom/example/m6shop/DishesActivity22;->listcom:Ljava/util/List;

    .line 969
    const-string v20, "comment"

    move-object/from16 v0, v20

    invoke-virtual {v13, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v4

    .line 970
    .local v4, "com":Lorg/json/JSONArray;
    const/4 v9, 0x0

    :goto_3
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v20

    move/from16 v0, v20

    if-lt v9, v0, :cond_5

    .line 988
    const-string v20, "listattr========================="

    new-instance v21, Ljava/lang/StringBuilder;

    invoke-direct/range {v21 .. v21}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->listattr:Ljava/util/List;

    move-object/from16 v22, v0

    invoke-virtual/range {v21 .. v22}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v21

    invoke-virtual/range {v21 .. v21}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 989
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v21, v0

    # getter for: Lcom/example/m6shop/DishesActivity22;->helper:Lmyclass/DBOpenHelper;
    invoke-static/range {v21 .. v21}, Lcom/example/m6shop/DishesActivity22;->access$30(Lcom/example/m6shop/DishesActivity22;)Lmyclass/DBOpenHelper;

    move-result-object v21

    invoke-virtual/range {v21 .. v21}, Lmyclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v21

    .line 990
    new-instance v22, Ljava/lang/StringBuilder;

    const-string v23, "select * from cart where goodsid="

    invoke-direct/range {v22 .. v23}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v23, v0

    move-object/from16 v0, v23

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->goodsid:Ljava/lang/String;

    move-object/from16 v23, v0

    invoke-virtual/range {v22 .. v23}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v22

    invoke-virtual/range {v22 .. v22}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v22

    const/16 v23, 0x0

    .line 989
    invoke-virtual/range {v21 .. v23}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Lcom/example/m6shop/DishesActivity22;->access$31(Lcom/example/m6shop/DishesActivity22;Landroid/database/Cursor;)V

    .line 991
    const/4 v8, 0x0

    .line 992
    .local v8, "goodscount":I
    const/4 v7, 0x0

    .line 993
    .local v7, "goodscostone":F
    const/4 v3, 0x1

    .line 994
    .local v3, "checkgd":Z
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    # getter for: Lcom/example/m6shop/DishesActivity22;->cursor:Landroid/database/Cursor;
    invoke-static/range {v20 .. v20}, Lcom/example/m6shop/DishesActivity22;->access$32(Lcom/example/m6shop/DishesActivity22;)Landroid/database/Cursor;

    move-result-object v20

    if-eqz v20, :cond_2

    .line 995
    :goto_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    # getter for: Lcom/example/m6shop/DishesActivity22;->cursor:Landroid/database/Cursor;
    invoke-static/range {v20 .. v20}, Lcom/example/m6shop/DishesActivity22;->access$32(Lcom/example/m6shop/DishesActivity22;)Landroid/database/Cursor;

    move-result-object v20

    invoke-interface/range {v20 .. v20}, Landroid/database/Cursor;->moveToNext()Z

    move-result v20

    if-nez v20, :cond_7

    .line 1005
    :cond_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    # getter for: Lcom/example/m6shop/DishesActivity22;->cursor:Landroid/database/Cursor;
    invoke-static/range {v20 .. v20}, Lcom/example/m6shop/DishesActivity22;->access$32(Lcom/example/m6shop/DishesActivity22;)Landroid/database/Cursor;

    move-result-object v20

    invoke-interface/range {v20 .. v20}, Landroid/database/Cursor;->close()V

    .line 1006
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->bb:Lcom/example/m6shop/GoodsBean2;

    move-object/from16 v20, v0

    invoke-static {v8}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lcom/example/m6shop/GoodsBean2;->setCart(Ljava/lang/String;)V

    .line 1009
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    # getter for: Lcom/example/m6shop/DishesActivity22;->tempgd:Ljava/util/List;
    invoke-static/range {v20 .. v20}, Lcom/example/m6shop/DishesActivity22;->access$11(Lcom/example/m6shop/DishesActivity22;)Ljava/util/List;

    move-result-object v20

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v21, v0

    move-object/from16 v0, v21

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->bb:Lcom/example/m6shop/GoodsBean2;

    move-object/from16 v21, v0

    invoke-interface/range {v20 .. v21}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 1010
    move-object/from16 v0, v17

    iput-object v0, v12, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1012
    const/16 v20, 0x12

    move/from16 v0, v20

    iput v0, v12, Landroid/os/Message;->arg1:I

    .line 1013
    sget-object v20, Lcom/example/m6shop/DishesActivity22;->h:Landroid/os/Handler;

    move-object/from16 v0, v20

    invoke-virtual {v0, v12}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 931
    .end local v2    # "bagcost":F
    .end local v3    # "checkgd":Z
    .end local v4    # "com":Lorg/json/JSONArray;
    .end local v5    # "cost":F
    .end local v7    # "goodscostone":F
    .end local v8    # "goodscount":I
    .end local v16    # "pro":Lorg/json/JSONArray;
    :cond_3
    new-instance v14, Lbean/Shopimg;

    invoke-direct {v14}, Lbean/Shopimg;-><init>()V

    .line 932
    .local v14, "pb":Lbean/Shopimg;
    invoke-virtual {v15, v9}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    const-string v21, "imgurl"

    invoke-virtual/range {v20 .. v21}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    move-object/from16 v0, v20

    invoke-virtual {v14, v0}, Lbean/Shopimg;->setImg(Ljava/lang/String;)V

    .line 933
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->listimg:Ljava/util/List;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    invoke-interface {v0, v14}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 930
    add-int/lit8 v9, v9, 0x1

    goto/16 :goto_1

    .line 958
    .end local v14    # "pb":Lbean/Shopimg;
    .restart local v2    # "bagcost":F
    .restart local v5    # "cost":F
    .restart local v16    # "pro":Lorg/json/JSONArray;
    :cond_4
    new-instance v14, Lbean/ProductBean;

    invoke-direct {v14}, Lbean/ProductBean;-><init>()V

    .line 959
    .local v14, "pb":Lbean/ProductBean;
    move-object/from16 v0, v16

    invoke-virtual {v0, v9}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    .line 960
    const-string v21, "attrname"

    .line 959
    invoke-virtual/range {v20 .. v21}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    move-object/from16 v0, v20

    invoke-virtual {v14, v0}, Lbean/ProductBean;->setAttrname(Ljava/lang/String;)V

    .line 961
    move-object/from16 v0, v16

    invoke-virtual {v0, v9}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    .line 962
    const-string v21, "attrids"

    invoke-virtual/range {v20 .. v21}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    .line 961
    move-object/from16 v0, v20

    invoke-virtual {v14, v0}, Lbean/ProductBean;->setAttrids(Ljava/lang/String;)V

    .line 963
    move-object/from16 v0, v16

    invoke-virtual {v0, v9}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    const-string v21, "stock"

    invoke-virtual/range {v20 .. v21}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    move-object/from16 v0, v20

    invoke-virtual {v14, v0}, Lbean/ProductBean;->setStock(Ljava/lang/String;)V

    .line 964
    move-object/from16 v0, v16

    invoke-virtual {v0, v9}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    const-string v21, "cost"

    invoke-virtual/range {v20 .. v21}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    move-object/from16 v0, v20

    invoke-virtual {v14, v0}, Lbean/ProductBean;->setCost(Ljava/lang/String;)V

    .line 965
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->listpro:Ljava/util/List;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    invoke-interface {v0, v14}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 957
    add-int/lit8 v9, v9, 0x1

    goto/16 :goto_2

    .line 971
    .end local v14    # "pb":Lbean/ProductBean;
    .restart local v4    # "com":Lorg/json/JSONArray;
    :cond_5
    new-instance v11, Ljava/util/HashMap;

    invoke-direct {v11}, Ljava/util/HashMap;-><init>()V

    .line 972
    .local v11, "mcom":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v20, "username"

    .line 973
    invoke-virtual {v4, v9}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v21

    const-string v22, "username"

    invoke-virtual/range {v21 .. v22}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    .line 972
    move-object/from16 v0, v20

    move-object/from16 v1, v21

    invoke-interface {v11, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 974
    const-string v20, "addtime"

    .line 975
    invoke-virtual {v4, v9}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v21

    const-string v22, "addtime"

    invoke-virtual/range {v21 .. v22}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    .line 974
    move-object/from16 v0, v20

    move-object/from16 v1, v21

    invoke-interface {v11, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 976
    const-string v20, "point"

    .line 977
    invoke-virtual {v4, v9}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v21

    const-string v22, "point"

    invoke-virtual/range {v21 .. v22}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    .line 976
    move-object/from16 v0, v20

    move-object/from16 v1, v21

    invoke-interface {v11, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 978
    const-string v20, "content"

    .line 979
    invoke-virtual {v4, v9}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v21

    const-string v22, "content"

    invoke-virtual/range {v21 .. v22}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    .line 978
    move-object/from16 v0, v20

    move-object/from16 v1, v21

    invoke-interface {v11, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 980
    invoke-virtual {v4, v9}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    const-string v21, "content"

    invoke-virtual/range {v20 .. v21}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    const-string v21, ""

    invoke-virtual/range {v20 .. v21}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v20

    if-nez v20, :cond_6

    .line 983
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->listcom:Ljava/util/List;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    invoke-interface {v0, v11}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 985
    :cond_6
    const-string v20, "listcom-----------------"

    new-instance v21, Ljava/lang/StringBuilder;

    invoke-direct/range {v21 .. v21}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22;->listcom:Ljava/util/List;

    move-object/from16 v22, v0

    invoke-virtual/range {v21 .. v22}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v21

    invoke-virtual/range {v21 .. v21}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 970
    add-int/lit8 v9, v9, 0x1

    goto/16 :goto_3

    .line 997
    .end local v11    # "mcom":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    .restart local v3    # "checkgd":Z
    .restart local v7    # "goodscostone":F
    .restart local v8    # "goodscount":I
    :cond_7
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v20, v0

    # getter for: Lcom/example/m6shop/DishesActivity22;->cursor:Landroid/database/Cursor;
    invoke-static/range {v20 .. v20}, Lcom/example/m6shop/DishesActivity22;->access$32(Lcom/example/m6shop/DishesActivity22;)Landroid/database/Cursor;

    move-result-object v20

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/DishesActivity22$4;->this$0:Lcom/example/m6shop/DishesActivity22;

    move-object/from16 v21, v0

    # getter for: Lcom/example/m6shop/DishesActivity22;->cursor:Landroid/database/Cursor;
    invoke-static/range {v21 .. v21}, Lcom/example/m6shop/DishesActivity22;->access$32(Lcom/example/m6shop/DishesActivity22;)Landroid/database/Cursor;

    move-result-object v21

    .line 998
    const-string v22, "goodscount"

    invoke-interface/range {v21 .. v22}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v21

    .line 997
    invoke-interface/range {v20 .. v21}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v20 .. v20}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/Integer;->intValue()I
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    move-result v8

    .line 999
    int-to-float v0, v8

    move/from16 v20, v0

    mul-float v7, v20, v5

    goto/16 :goto_4
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 1025
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 1026
    monitor-exit p0

    return-void

    .line 1025
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
